import request from "./request2";
export function phoneLogin (phone,password){
    return request({
        url:"/login/cellphone",
        method:"POST",
        withCredentials: true,
        params:{
            phone,
            password
        }
    })
}
export function exit (){
    return request({
        url:"/logout",
        method:"POST",
        withCredentials: true
    })
}
export function code (phone){
    return request({
        url:"/captcha/sent",
        method:"POST",
        params:{
            phone
        },
        withCredentials: true
    })
}
export function verificationCode (phone,captcha){
    return request({
        url:"/captcha/verify",
        method:"POST",
        params:{
            phone,
            captcha
        },
        withCredentials: true
    })
}
//验证手机号是否已经注册
export function IsRegister (phone){
    return request({
        url:"/cellphone/existence/check",
        method:"POST",
        params:{
            phone
        },
        withCredentials: true
    })
}